MyTwitter = function() {
};

MyTwitter.prototype = {
	uri : '',
	jsonpObj : null,
	
	set : function(uri) {
		this.uri = uri;
	},
	
	get : function() {
		if(this.jsonpObj) {
			head.removeChild(this.jsonpObj);
			this.jsonpObj = null;
		}
		
		if(this.uri == '') {
			alert("Neither uri or callback defined...");
			return (-1);
		}
		
		if(!this.jsonpObj) {
			this.jsonpObj = document.createElement('script');
			this.jsonpObj.type = 'text/javascript';
			this.jsonpObj.charset = 'utf-8';
			
			this.jsonpObj.src = this.uri; // + '&callback=' + this.callback;

			var head = document.getElementsByTagName('head').item(0);
		
			head.appendChild(this.jsonpObj);
		}
	}
};
